package com.koal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.koal.pojo.Admin;
import com.koal.pojo.ResultBean;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author LuoYQ
 * @since 2021-09-08
 */
public interface IAdminService extends IService<Admin> {

    /**
     * 返回token
     * @param username
     * @param password
     * @param request
     * @return
     */
     ResultBean login(String username, String password, HttpServletRequest request);

    /**
     * 通过username获得admin
     * @param username
     * @return
     */
     Admin getAdminByUsername(String username);
}
